﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using DataHandler;

namespace Factory
{
    public class AssemblyFactory
    {
        public static GetSql GetSqlAssmbly() 
        {
            string assemblyname = System.Configuration.ConfigurationManager.AppSettings["assmblyname"];
            return Assembly.Load(assemblyname).CreateInstance(assemblyname + ".GetSql") as GetSql;
        }
    }
}
